package com.cybertron.ironhide.manage.util;

import java.net.URI;
import java.net.URISyntaxException;

public class UrlUtil {

	public static String getHost(String url) {
		try {
			URI uri = new URI(url);
			String host = uri.getHost();
			return host;
		} catch (URISyntaxException e) {
			e.printStackTrace();
			return null;
		}
	}
}
